<?php

namespace App\Models\Gas;

use App\Models\Model;

class GasSk extends Model
{
    protected $table = 'akbus_gas_sk';

    protected $fillable = [
        'date_time',
        'gun_num',
        'serial_num',
        'post_num',
        'gas_count',
        'gas_amt',
        'gas_unit_amt',
        'card_region_num',
        'card_operator_num',
        'user_card_num',
        'card_type',
        'car_type',
        'license_plate_num',
        'line',
        'consumption_patterns',
        'card_balance',
        'team',
        'employee_card_num',
        'is_paid',
        'cashier',
        'sign',
        'start_pressure',
        'end_pressure',
        'add_gas_long',
        'stop_all_gas',
        'offset',
        'density',
    ];
    /**
     * 类型转化
     *
     * @var array
     */
    protected $casts = [
    ];

    /**
     * 拼接车牌号字符
     *
     * @param  string  $value
     *
     * @return string
     */
    public function getLicensePlateNumAttribute($value)
    {
        return '陕G'.$value;
    }

}
